package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.scene.chart.PieChart;
import javafx.scene.chart.PieChart.Data;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoPieChar
{
	public static PieChart getPieChart()
	{
		PieChart pieChart = new PieChart();
		pieChart.setTitle("Java4班毕业走向!");
		ObservableList<Data> lists = pieChart.getData();
		lists.addAll(
				new Data[]
				{
					new Data("考研人数", 20),
					new Data("出国人数", 5),
					new Data("找工作数", 50),
					new Data("公务员数", 15),
					new Data("其他人数", 10),
					
				});
		return pieChart;
	}
}
